package org.wmq.taskschedule.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.wmq.taskschedule.biz.model.DO.Step;
import org.wmq.taskschedule.mapper.StepMapper;
import org.wmq.taskschedule.service.StepService;


@Service
@Slf4j
public class StepServiceImpl extends ServiceImpl<StepMapper, Step> implements StepService {
    @Override
    public Step getByTaskIdAndIndex(Long taskId, int index) {
        return this.lambdaQuery().eq(Step::getTaskId, taskId).eq(Step::getIndex, index).one();
    }
}
